/**********************************************************************************
Copyright (C), by AppleCai
Project                      : Study Kernel
Description                  : BSP level for MPU6500
CPU and Compiler             : AM335x,ARM-LINIX-GCC
|----------------------------------------------------------------------------------
|               R E V I S I O N   H I S T O R Y
|----------------------------------------------------------------------------------
| Date        Version  Author   Description
| --------    -------  ------   ---------------------------------------------------
| 2020-12-14  1.0.0    AppleCai MPU6500_001: Initial release version
**********************************************************************************/
#ifndef _APPLE6500_H_
#define _APPLE6500_H_

#define APPLE6500_DRV_NAME	"apple6500sensor"
struct apple6500;
struct device;
struct apple6500_transfer_func {
	int (*read) (struct device *dev, unsigned off);
	int (*write) (struct device *dev, unsigned off, unsigned char v);
	int (*readblock)(struct device *dev, unsigned off,unsigned char *buf, size_t size);
};
int apple6500_remove(struct apple6500 *m);
struct apple6500 *apple6500_probe(struct device *dev,const struct apple6500_transfer_func *trops);

#endif